package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.FeedManageMapper;
import com.ruoyi.system.domain.FeedManage;
import com.ruoyi.system.service.IFeedManageService;

/**
 * 饲料管理Service业务层处理
 * 
 * @author fxk
 * @date 2023-06-20
 */
@Service
public class FeedManageServiceImpl implements IFeedManageService 
{
    @Autowired
    private FeedManageMapper feedManageMapper;

    /**
     * 查询饲料管理
     * 
     * @param feedId 饲料管理主键
     * @return 饲料管理
     */
    @Override
    public FeedManage selectFeedManageByFeedId(Integer feedId)
    {
        return feedManageMapper.selectFeedManageByFeedId(feedId);
    }

    /**
     * 查询饲料管理列表
     * 
     * @param feedManage 饲料管理
     * @return 饲料管理
     */
    @Override
    public List<FeedManage> selectFeedManageList(FeedManage feedManage)
    {
        return feedManageMapper.selectFeedManageList(feedManage);
    }

    /**
     * 新增饲料管理
     * 
     * @param feedManage 饲料管理
     * @return 结果
     */
    @Override
    public int insertFeedManage(FeedManage feedManage)
    {
        return feedManageMapper.insertFeedManage(feedManage);
    }

    /**
     * 修改饲料管理
     * 
     * @param feedManage 饲料管理
     * @return 结果
     */
    @Override
    public int updateFeedManage(FeedManage feedManage)
    {
        return feedManageMapper.updateFeedManage(feedManage);
    }

    /**
     * 批量删除饲料管理
     * 
     * @param feedIds 需要删除的饲料管理主键
     * @return 结果
     */
    @Override
    public int deleteFeedManageByFeedIds(Integer[] feedIds)
    {
        return feedManageMapper.deleteFeedManageByFeedIds(feedIds);
    }

    /**
     * 删除饲料管理信息
     * 
     * @param feedId 饲料管理主键
     * @return 结果
     */
    @Override
    public int deleteFeedManageByFeedId(Integer feedId)
    {
        return feedManageMapper.deleteFeedManageByFeedId(feedId);
    }
}
